Skip to content

Apply consistent code formatting with clang-format#8

Merged
0xeb merged 3 commits intomainfrom
format/style-consistency
Nov 27, 2025
Merged

Apply consistent code formatting with clang-format#8
0xeb merged 3 commits intomainfrom
format/style-consistency

Conversation

@0xeb
Copy link
Copy Markdown
Owner

@0xeb 0xeb commented Nov 27, 2025

Summary

  • Add .clang-format config: Allman braces, 4-space indent, no braces for single statements
  • Add .githooks/pre-commit for auto-formatting on commit
  • Add CI workflow to check formatting on PRs
  • Format all source files for consistency

Test plan

  • Build passes locally (Release)
  • All 38 tests pass locally

0xeb added 3 commits November 26, 2025 11:42
Comprehensive test coverage matching Python's test_server_interactions.py:
- TestTools, TestToolParameters, TestOutputSchema, TestContentTypes
- TestResource, TestResourceTemplates, TestResourceAnnotations
- TestPrompts, TestPromptVariations, TestMeta
- TestCapabilities, TestProgressAndNotifications, TestRootsNotification
- TestCancelledNotification, TestLogging, TestImageContent
- TestEmbeddedResource, TestToolInputValidation, TestResourceSubscribe
- TestCompletionEdgeCases, TestBatchOperations, TestTransportEdgeCases
- Unicode, pagination, large data, error handling, and edge cases

Also fixes iterator dereference bug in client.hpp when accessing
structuredContent without registered outputSchema.
Squashed commits from feature/mcp-parity-20251126:

- Add optional request metadata to Context (request_id, session_id, meta)
- Add tool schema exclude/prune support for parameter hiding
- Refine middleware tool injection to return structured JSON
- Add MCP-shaped middleware tests for prompt/resource injection
- Fix test port conflicts for parallel execution

Test coverage: 38/38 passing
- Add .clang-format config: Allman braces, 4-space indent, no braces for single statements
- Add .githooks/pre-commit for auto-formatting on commit
- Add CI workflow to check formatting on PRs
- Format all source files for consistency
@0xeb 0xeb force-pushed the format/style-consistency branch from b52d1bc to 9ae1617 Compare November 27, 2025 12:12
@0xeb 0xeb merged commit 5b3522a into main Nov 27, 2025
6 of 9 checks passed
@0xeb 0xeb deleted the format/style-consistency branch November 27, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant